<% if @results == nil %>
    alert('sorry hotel is empty');
<% else %>
    $('#hotel_list').html(' <%= j render partial: "hotel" %> ');
    $('#pagination').html(' <%= j will_paginate @results , :previous_label => '<', :next_label => '>', remote: true  %> ');
<% end %>
